package com.c2c.po;

import com.c2c.po.enums.impl.CommentsState;

import java.util.Date;

public class Comment {

    private int commentId;
    private Date commentTime;
    private String commentContent;
    private int userAccount;
    private int goodsId;
    private CommentsState commentState;

    private User user;


    public int getCommentId() {
        return commentId;
    }

    public void setCommentId(int commentId) {
        this.commentId = commentId;
    }

    public Date getCommentTime() {
        return commentTime;
    }

    public void setCommentTime(Date commentTime) {
        this.commentTime = commentTime;
    }

    public String getCommentContent() {
        return commentContent;
    }

    public void setCommentContent(String commentContent) {
        this.commentContent = commentContent;
    }

    public int getUserAccount() {
        return userAccount;
    }

    public void setUserAccount(int userAccount) {
        this.userAccount = userAccount;
    }

    public int getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(int goodsId) {
        this.goodsId = goodsId;
    }

    public CommentsState getCommentState() {
        return commentState;
    }

    public void setCommentState(CommentsState commentsState) {
        this.commentState = commentsState;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    @Override
    public String toString() {
        return "Comment{" +
                "commentId=" + commentId +
                ", commentTime=" + commentTime +
                ", commentContent='" + commentContent + '\'' +
                ", userAccount=" + userAccount +
                ", goodsId=" + goodsId +
                ", commentState=" + commentState +
                ", user=" + user +
                '}';
    }
}
